from selenium import webdriver
from selenium.webdriver.common.by import By
import time

driver = webdriver.Chrome()
driver.get("https://www.baidu.com")
kw = driver.find_element(By.ID,'kw')
kw.send_keys("hhhh")
time.sleep(3)
print(kw.text)
print(kw.size)
time.sleep(3)
driver.quit()

